<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>XbsjTileserImageryProvider示例</title>
    <script type="text/javascript"
        src="https://cesium.com/downloads/cesiumjs/releases/1.112/Build/Cesium/Cesium.js"></script>
    <link rel="stylesheet" href="https://cdn.bootcdn.net/ajax/libs/cesium/1.109.0/Widgets/widgets.css">
    <style>
        html,
        body,
        #cesiumContainer {
            width: 100%;
            height: 100%;
            margin: 0;
            padding: 0;
            overflow: hidden;
        }
    </style>
</head>

<body>
    <div id="cesiumContainer">
    </div>
    <script>

        const viewer = new Cesium.Viewer('cesiumContainer', {});
        //因为需要声明4326瓦片，需要加tilingScheme: new Cesium.GeographicTilingScheme()
        //非4326，例如3857，仅支持定制
        var imgLayer = new Cesium.UrlTemplateImageryProvider({
            url: "https://tileser.giiiis.com/new/{z}/{x}/{y}.jpg",
            minimumLevel: 0,
            maximumLevel: 18,
            tilingScheme: new Cesium.GeographicTilingScheme(),
        }
        );
        viewer.imageryLayers.addImageryProvider(imgLayer);

    </script>
</body>

</html>
